home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
026-050
/
scopedisk27
/
duh27
/
du-hermes.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
17KB
|
358 lines
HERMES' DU-HERMES (Version 2.7)
Copyright (c) 1987-88 A. G. Kartsatos
(CIS = 76617,121, GEnie = XTH58515, PLink = HERMES)
*** Shareware Program ***
This version has a Touch of Class! At least I think so!
I have added 3 more items in a second menu: SAVE LIST, PATTERN MATCH,
and LOCATE FILE. You can find the description of their functions below.
I have also made it much easier to change the colors and the
HERMES.file path than before.
This is now a major all purpose Directory Utility. Master it and
you'll see how efficient it is.
* TO RUN IT IMMEDIATELY: Make sure you have STACK, ARC, SHOW and EDIT *
* in your current c directory. EDIT is the name of your Editor program. *
* Place the file MODULE in the same c directory. *
* Press: RUN DU-HERMES, or CLICK THE DU-HERMES icon from the WBench. *
* TO EXIT THE PROGRAM: Choose QUIT from the menu, or click into the *
* rectangle at the bottom right of the screen, or press RIGHT_AMIGA-Q. *
* *
* $$$ ATTENTION $$$ *
* *
* Read below about changing the COLORS of DU-HERMES, or its DRIVE *
* NAMES, or the PATH of the HERMES.file. It is all VERY SIMPLE!!! *
A) CHANGE DRIVES:
Just replace the seven drive names on the first line of
HERMES.file by the drive names of your choice. DU-HERMES will
show first the first drive in that list. Leave one space between
the drive names.
B) CHANGE COLORS:
The second line of HERMES.file contains the (HEX) numbers:
"2 3 8 F F F C A 0 E 0 0". These are the 4 colors of DU-HERMES:
Dark blue: 238, White FFF, Gold: FA0, Red: E00.
I have included herein a program called PALETTE. This is a small
modification of Carolyn Scheppner's Palette Tool program.
Run DU-HERMES, choose PALETTE in the file listing on the left
and then click into the RUN gadget. The palette will fall on the
screen of DU-HERMES. Change the colors as you please.
Each time you modify a color, pick up the 3 numbers representing
that color.
These are the 3 numbers on the right of the palette window. For
example, if you see 3EF, the 3 numbers are 3, E, and F.
Put these 12 numbers on the second line of HERMES.file, and...
voila! You've got your own colors! Put the numbers in exactly
as you see them in the file right now. This is the only use of the
PALETTE. It is not needed for the program to run.
C) CHANGE PATH FOR HERMES.file:
This is also very easy to use. I have included herein a small
program called DUH.Config. You can use it to place the HERMES.file
wherever you want it permanently. Assume the you would like the
HERMES.file to be in the directory DF0:c. All you need to do is:
Have your DUH.Config file where DU-HERMES is and press:
DUH.Config DF0:c/HERMES.file.
That's it! Now, you must place your HERMES.file in the directory
DF0:c and DU-HERMES will know where to find it from now on!
You can have a path of up to 30 characters long.
This is the only use of DUH.Config. You don't need it to run
DU-HERMES.
REMEMBER: Since now DU-HERMES knows where the HERMES file is,
you can PLACE DU-HERMES in your c DIRECTORY and RUN IT FROM
ANYWHERE! Yes, that's the idea. You can run it from anywhere
on your Amiga by pressing: Run DU-HERMES, or simply DU-HERMES.
Naturally, you can repeat any of the above items A)-C) whenever
you please.
D) STORAGE:
Choosing this menu item, you get the bytes available on your
current drives. If a floppy has been removed, or a hard disk
drive cannot be read, you get "No disk present" in the corre-
sponding entry of the Storage Report.
Storage will be shown for the drives DF0: - DF4:, DH0: - DH9:,
VD0: and VDK:. If you have any other arrangement, I will plea-
santly send you a copy of DU-HERMES that takes care of it.
E) WORKBENCH:
This is a very useful menu item. By choosing it, you reduce
the size of DU-HERMES to nothing! It becomes a small window
so that you can work on the Workbench. Activate that window,
then press <RETURN> and you are back in the directory you
were before. If you have manually erased that directory from
the S (Source) gadget, DU-HERMES will show the contents of
your first drive.
Various other improvements, including the inclusion of more
error statements, have been made.
F) SAVE LIST:
Choosing this item allows you to save the file listing on the
left exactly as it is, i.e., alphabetically and with the file
sizes. CAUTION: The list will be saved into a file whose name
is the one that you put in the C gadget. If this file exists,
it will be overwritten! So, don't blame me...
G) PATTERN MATCH:
Just enter a string into the C gadget and then choose this menu
item. DU-HERMES will find and highlight all the files in the
current directory that contain that string in their names. This
process is case-insensitive, i.e., lower case or caps make no
difference.
To clear the highlighted filenames, just click into the CLEAR
gadget.
H) FIND FILE:
You can now locate any file in the current directory that has
the name that you enter in the C gadget. Again, if that name in
the C gadget already exists, it will be overwritten...
The entire directory and all of its subdirectories are scanned.
I have avoided pattern matching in this piece of code to save time.
I use instead the Manx access() function.
THIS IS A SHAREWARE PROGRAM.
IF YOU USE THE PROGRAM, PLEASE SEND $15.00 TO
A. G. Kartsatos
8524 Caladesi Island Drive
Tampa, FL 33637, USA
Other programs by the author:
PALETTA.ARC (Color Mixing, Modifying IFF's, Random Colors)
CALCULA.ARC (An Expression Parser And A Function Evaluator. Unique!)
SIMPLICA.ARC (The Simplex Method Of Linear Programming)
ROST.ARC (Reports On Storage And Tasks On Their Windows. Useful!)
LISTA11.ARC (Very Useful Directory Lister. Alpha, Bytes, Patterns,
CLI, Refresh. Opens Its Own Window)
SCRIPTA.ARC (Online!-PCP Script Maker. Easy Script Files!)
FORMULA!.ARC (Formidable 3D-Grapher In C. It graphs z = f(x,y). Choice
Of Colors. 17 Functions Supported. An Artist's Tool)
FINANCA.ARC (Mortgage, Compound Interest And Annuity)
CONTOURA.ARC (Spectacular Contour Grapher. Definitely An Artist's
Tool. CENTER, ZOOM IN, ZOOM OUT, FLOWING PALETTE...)
ARCHA11.ARC (ARC-PAK-ZOO Utility. It Also Has Another 12 Utility
Gadgets And 7 Drive Gadgets. Only 29K, It Can Be Used
As An Efficient Directory Utility)
Feel free to distribute this program, with this doc intact, to any
bulletin boards and other non-profit establishments in the US and abroad.
You may also upload this program to major boards like Compuserve,
Delphi, GEnie, PLink, etc.
The inclusion of this program, or any part of it, in any form in a
commercial package, or its use for any commercial purposes, requires the
written permission of the author.
FOR SUPPORT, CALL *HERMES BBS* IN TAMPA, FL.
TELEPHONE: 813-985-7624. 70 MEG OF STORAGE, 1500 FILES ONLINE, GOOD
MESSAGE BASE.
ALTHOUGH IT IS A PRIVATE BOARD, YOU MAY LEAVE A MESSAGE TO THE SYSOP
CONCERNING ANY QUESTIONS OR COMMENTS YOU MIGHT HAVE ABOUT HERMES' PROGRAMS.
DU-HERMES (Version 2.5)
Here is a new and better version of DU-HERMES. It now has another
page of gadgets (72 total number of gadgets) that is user-configurable and
allows the user to use PARAMETERS in his commands.
You can now run it from the Wbench with an icon too!
In the file HERMES.file, these are the 24 last entries. Each entry
has a gadget title as before (see below) under which the user can enter
a command with up to 2 parameters. For example, if you want your own
gadget with the command FIXOBJ in it, just use the title FIXOBJ in the
corresponding position of HERMES.file and under it add "Run Fixobj %s %s"
without the quotes of course. The symbols %s %s stand for the two para-
meters that Fixobj needs. The first one is the filename and the second
is the new filename. The first parameter is the name of the file that
you have clicked in the table of files on the left, and the second is
a filename that you must enter in the C gadget. For example, to Fixobj
the file "HELLO" with new name "GOODBYE", enter "GOODBYE" in the C gadget,
click the filename "HELLO" in the table of files and then click the
FIXOBJ gadget. One-parameter commands will contain only one symbol "%s"
and that can be a filename from the table of files or any name in the
C gadget.
DU-HERMES now has the WBench screen as the background screen and only
4 colors. This makes the program considerably faster than its previous
versions.
I have added 3 more gadgets per page and a "TASKS" entry in the menu
to display the current tasks. The gadgets are: COPYDIR, EXEC-CLI and
NEWCLI (see below).
EXPLANATION OF BUILT IN GADGETS:
ALL: Highlights all files, except directories.
CLEAR: Removes the highlighting from all files and directories.
BYTES: Displays at the bottom the number of bytes in all the
highlighted files (not directories).
EDIT: Edits the file that you have highlighted by clicking into
its line in the table of files on the left. Make sure
you are not trying to edit a directory.
READ: Reads ASCII file you have selected. This process uses
the console device. It will not work on binary files.
SHOW: Shows the pictures you have selected. You must have the
program SHOW in your C directory. Andry Rachmat's SHOW
program is the best for me.
DELDIR: Deletes the selected directory. You must delete all the
files inside a directory before you use this function.
This function works only on directories.
PARENT: Moves up one step in the directory tree. It will stop
moving when it hits a root directory.
MAKEDIR: Creates a new directory with the name that you have
entered in the C gadget.
COPY: Copies all the files that you have selected into the
Destination Directory that you have entered in gadget D.
Does not work on directories (see COPYDIR below).
RENAME: Renames a selected file or directory. The new name
should be entered in the C gadget on the left.
SWAP: Toggles between the Source (S) gadget and the Destination
(D) gadget.
DELETE: Deletes the selected file. It will not work on directories.
GETDIR: Attaches to the selected directory and displays its files.
PRINT: Prints the file you have selected to the printer.
LISTARC: Lists the files in an archived file you have selected.
UNARC: Unarcs the files of an archived file you have selected. Then
it re-displays the contents of the current directory with
the files extracted. A re-direction window shows the
result of the unarcing.
ARC: Arcs the files you have selected into an archived file
that has the name you have entered in the C gadget. You
don't have to include the ending .ARC in the C gadget.
SINFO: Displays the number of bytes available in the current
volume (like VD0:, DF0:, etc) in the Source gadget.
DINFO: Displays the number of bytes available in the current
volume (like VD0:, DF0:, etc) in the Destination gadget.
RUN: Runs any file you have selected. Make sure it is a
runable file.
CAUTION: The file you have just run,like FACC or QMouse,
might be a resident program that does not close the
DU-HERMES WINDOW until it is off. Remember this remark!
COPYDIR: Copies a selected directory into the directory specified
in the Destination gadget (D).
EXEC-CLI: It executes any CLI command that you enter in your C
gadget. For example, if you enter in the C gadget:
"Run DH1:DELPAINT/Dpaint" and then you click into the EXEC-CLI
gadget, you are running the program Dpaint residing in the
directory DH1:DELPAINT. Now, remember! You cannot always
do this. If you say "Run DH1:SONIX/Sonix" and then you
click EXEC-CLI, you are not going to be able to run Sonix.
This is because the Sonix program looks for its files like
Scores, etc. If it doesn't find them, it does not load!
In this case, you should use the MACROS gadgets as I have
indicated in the HERMES.file.
CAUTION: When you run the program by its icon, you should
include the entire pathname for the files you might use in
the command in the gadget C.
NEWCLI: Opens a new CLI window on top of the DU-HERMES screen.
PAGE 1: Activates the built in gadgets.
PAGE 2: Activates the MACROS gadgets.
PAGE 3: Activates the PARAMETERS gadgets.
DU-HERMES (Version 2.0)
This is a major revision of the DU-HERMES program.
NEW FUNCTIONS: (You need the STACK command in your "c" directory)
MACRO-CONFIGURABLE GADGETS: The second page in the program is entirely
user-configurable. Each gadget on that page can be configured so that
when you click on it once it executes a sequence of up to 7 commands. These
commands reside in the file HERMES.file (see details below).
A CONTINUOUSLY RUNNING CLOCK: This clock is in the attached
MODULE file which resides in your current "c" directory. The clock commu-
nicates with DU-HERMES via a port. When DU-HERMES is clicked off, it
sends a message to the port. The clock receives it and closes itself
down.
RAM: I have added another little window on top of the screen that
gives you the RAM:.
MEMORY: This is another MENU entry that gives you separately the
FAST MEMORY, the CHIP MEMORY and the AVAILABLE MEMORY.
READ: I have written my own ASCII reading program that uses the
custom window and the console device instead of stdout and WBench. I
think it is very nice. I might even expand it to a full-featured editor.
INFO: This command is in the MENU and gives you the INFO command, but
without the rather disturbibg "Volumes Mounted" at its tail!
I have deleted the copiers (DISKCOPY & FORMAT) because they are two
slow when done on DirUtils.
1) Use from CLI or WorkBench.
2) To prepare your own command sequences, remember the following:
2a) HERMES.file starts always with an empty line and finishes with
an empty line. Each gadget name contains exaclty 10 characters. This
includes the quote (") at the end of the name of the gadget. Center your
custom gadget name as much as possible. Your gadget name can of course have
up to 9 characters that will appear on the second page of gadgets.
2b) Right after each custom gadget name you may put your own commands.
Eache line will contain ONLY ONE COMMAND. Do not string them together!
You can afford up to 7 commands under each gadget name. However, only the
first command can contain the "cd" command in it. I did it this way, so
that the program does not have to look for "cd" all the time and slow
down. You can change ALL 21 gadgets of Page 2. At the
end of the sequence of commands under a gadget you MUST HAVE AN EMPTY
LINE.